package com.stellar.circle.basic.entity;

import java.util.Date;
import java.io.Serializable;

/**
 * 私聊消息表(SChatMessage)实体类
 *
 * @author Jqchan
 * @since 2025-06-12 21:21:21
 */
public class SChatMessage implements Serializable {
    private static final long serialVersionUID = -73055529579278234L;
    
    /**
     * 消息ID，主键
     */
    private Long id;
    
    /**
     * 会话ID（格式：user1Id_user2Id，按数字大小排序）
     */
    private String conversationId;
    
    /**
     * 发送者ID（关联auth_user表id）
     */
    private Long senderId;
    
    /**
     * 接收者ID（关联auth_user表id）
     */
    private Long receiverId;
    
    /**
     * 消息内容
     */
    private String content;
    
    /**
     * 消息类型：text-文本/image-图片/file-文件
     */
    private String contentType;
    
    /**
     * 是否被隐藏：0-否/1-是（敏感内容自动隐藏）
     */
    private Integer isHidden;
    
    /**
     * 隐藏原因
     */
    private String hiddenReason;
    
    /**
     * 是否已读：0-否/1-是
     */
    private Integer isRead;
    
    /**
     * 创建时间
     */
    private Date createTime;
    
    /**
     * 创建人
     */
    private String createBy;
    
    /**
     * 修改时间
     */
    private Date updateTime;
    
    /**
     * 修改人
     */
    private String updateBy;
    
    /**
     * 是否删除：1-删除/0-未删除
     */
    private Integer isDeleted;
    


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getConversationId() {
        return conversationId;
    }

    public void setConversationId(String conversationId) {
        this.conversationId = conversationId;
    }

    public Long getSenderId() {
        return senderId;
    }

    public void setSenderId(Long senderId) {
        this.senderId = senderId;
    }

    public Long getReceiverId() {
        return receiverId;
    }

    public void setReceiverId(Long receiverId) {
        this.receiverId = receiverId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getContentType() {
        return contentType;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }

    public Integer getIsHidden() {
        return isHidden;
    }

    public void setIsHidden(Integer isHidden) {
        this.isHidden = isHidden;
    }

    public String getHiddenReason() {
        return hiddenReason;
    }

    public void setHiddenReason(String hiddenReason) {
        this.hiddenReason = hiddenReason;
    }

    public Integer getIsRead() {
        return isRead;
    }

    public void setIsRead(Integer isRead) {
        this.isRead = isRead;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }
}
